(function(angular){
	'use strict';
	angular.module('fs.waf').controller('cda.swiftBic.viewController',viewController);
	viewController.$inject = ['$scope', 'Constants', 'layoutConfig', 'validatorConfig', 'gridService', 'authService', 'swiftBicService'];
	function viewController ($scope, Constants, layoutConfig, validatorConfig, gridService, authService, swiftBicService){
		var ctrl = this, swiftBicInfo = $scope.$stateParams.params;
		ctrl.layoutConfig = layoutConfig;
		ctrl.validatorConfig = validatorConfig;
		ctrl.swiftBic ={};
		ctrl.init = function (){
			var params = {
					bicCode : swiftBicInfo.bicCode
			};
			return authService.view(params).then(function(response){
				ctrl.swiftBic = response.data || swiftBicInfo;
				
			},angular.noop());
		};		
	}	
})(angular);